import type { PlusColumn } from 'plus-pro-components'

import { ref } from 'vue'

export function useForm() {
    const schema: PlusColumn[] = [
        {
            colProps: {
                span: 8,
            },
            fieldProps: {
                placeholder: '请输入',
            },
            label: '人员姓名',
            prop: 'userName',
            valueType: 'copy',
        },
        {
            colProps: {
                span: 8,
            },
            fieldProps: {
                placeholder: '请输入',
            },
            label: '手机号',
            prop: 'phonenumber',
            valueType: 'copy',
        },
        // {
        //     colProps: {
        //         span: 8,
        //     },
        //     fieldProps: {
        //         placeholder: '请输入',
        //     },
        //     label: '创建人',
        //     prop: 'createBy',
        //     valueType: 'copy',
        // },
    ] as const

    const form = ref({
        deptId: '',
        // createBy: '',
        phonenumber: '',
        userId: '',
        userName: '',
    })
    return { form, schema }
}
